package com.jisu.service;

import com.alibaba.nacos.shaded.io.grpc.Grpc;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jisu.dto.UserDTO;
import com.jisu.dto.UserQueryDTO;
import com.jisu.mapper.UserMapper;
import com.jisu.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author fzy
 * @since 2025-07-14
 */

public interface UserService extends IService<User> {


    String checkUserAccountOrPhoneExists(String userAccountNumber, String phone);



    // UserService.java
    User login(String accountNumber, String password);


    User getByAccountNumber(String username);

    List<User> searchUsers(UserQueryDTO userQueryDTO);

    IPage<User> getUsersByPage(int pageNum, int pageSize);


}
